package com.wjh.anyview.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wjh.anyview.entity.po.Permission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author wjh
 * @date 2021/10/9 18:28
 * @Package com.wjh.anyview.dao
 */
@Repository
public interface PermissionMapper extends BaseMapper<Permission> {
    /**
     * 通过用户id查询权限
     *
     * @param userId 用户id
     * @return 返回权限集合
     */
    List<String> listPermissionsByUserId(@Param("userId") Long userId);

}
